﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000101 RID: 257
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleOp : IMessage<BattleOp>, IMessage, IEquatable<BattleOp>, IDeepCloneable<BattleOp>, IBufferMessage
	{
		// Token: 0x17000367 RID: 871
		// (get) Token: 0x06000BA7 RID: 2983 RVA: 0x000225DF File Offset: 0x000207DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleOp> Parser
		{
			get
			{
				return BattleOp._parser;
			}
		}

		// Token: 0x17000368 RID: 872
		// (get) Token: 0x06000BA8 RID: 2984 RVA: 0x000225E6 File Offset: 0x000207E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleOpReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000369 RID: 873
		// (get) Token: 0x06000BA9 RID: 2985 RVA: 0x000225F8 File Offset: 0x000207F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleOp.Descriptor;
			}
		}

		// Token: 0x06000BAA RID: 2986 RVA: 0x000225FF File Offset: 0x000207FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleOp()
		{
		}

		// Token: 0x06000BAB RID: 2987 RVA: 0x00022614 File Offset: 0x00020814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleOp(BattleOp other) : this()
		{
			this.turnCounter_ = other.turnCounter_;
			this.state_ = other.state_;
			this.actionEntityId_ = other.actionEntityId_;
			this.targetEntityId_ = other.targetEntityId_;
			this.opType_ = other.opType_;
			this.skillIndex_ = other.skillIndex_;
			this.operationCounter_ = other.operationCounter_;
			this.kKPMJEJNLNB_ = other.kKPMJEJNLNB_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000BAC RID: 2988 RVA: 0x00022698 File Offset: 0x00020898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleOp Clone()
		{
			return new BattleOp(this);
		}

		// Token: 0x1700036A RID: 874
		// (get) Token: 0x06000BAD RID: 2989 RVA: 0x000226A0 File Offset: 0x000208A0
		// (set) Token: 0x06000BAE RID: 2990 RVA: 0x000226A8 File Offset: 0x000208A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TurnCounter
		{
			get
			{
				return this.turnCounter_;
			}
			set
			{
				this.turnCounter_ = value;
			}
		}

		// Token: 0x1700036B RID: 875
		// (get) Token: 0x06000BAF RID: 2991 RVA: 0x000226B1 File Offset: 0x000208B1
		// (set) Token: 0x06000BB0 RID: 2992 RVA: 0x000226B9 File Offset: 0x000208B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint State
		{
			get
			{
				return this.state_;
			}
			set
			{
				this.state_ = value;
			}
		}

		// Token: 0x1700036C RID: 876
		// (get) Token: 0x06000BB1 RID: 2993 RVA: 0x000226C2 File Offset: 0x000208C2
		// (set) Token: 0x06000BB2 RID: 2994 RVA: 0x000226CA File Offset: 0x000208CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ActionEntityId
		{
			get
			{
				return this.actionEntityId_;
			}
			set
			{
				this.actionEntityId_ = value;
			}
		}

		// Token: 0x1700036D RID: 877
		// (get) Token: 0x06000BB3 RID: 2995 RVA: 0x000226D3 File Offset: 0x000208D3
		// (set) Token: 0x06000BB4 RID: 2996 RVA: 0x000226DB File Offset: 0x000208DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetEntityId
		{
			get
			{
				return this.targetEntityId_;
			}
			set
			{
				this.targetEntityId_ = value;
			}
		}

		// Token: 0x1700036E RID: 878
		// (get) Token: 0x06000BB5 RID: 2997 RVA: 0x000226E4 File Offset: 0x000208E4
		// (set) Token: 0x06000BB6 RID: 2998 RVA: 0x000226EC File Offset: 0x000208EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OpType
		{
			get
			{
				return this.opType_;
			}
			set
			{
				this.opType_ = value;
			}
		}

		// Token: 0x1700036F RID: 879
		// (get) Token: 0x06000BB7 RID: 2999 RVA: 0x000226F5 File Offset: 0x000208F5
		// (set) Token: 0x06000BB8 RID: 3000 RVA: 0x000226FD File Offset: 0x000208FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillIndex
		{
			get
			{
				return this.skillIndex_;
			}
			set
			{
				this.skillIndex_ = value;
			}
		}

		// Token: 0x17000370 RID: 880
		// (get) Token: 0x06000BB9 RID: 3001 RVA: 0x00022706 File Offset: 0x00020906
		// (set) Token: 0x06000BBA RID: 3002 RVA: 0x0002270E File Offset: 0x0002090E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OperationCounter
		{
			get
			{
				return this.operationCounter_;
			}
			set
			{
				this.operationCounter_ = value;
			}
		}

		// Token: 0x17000371 RID: 881
		// (get) Token: 0x06000BBB RID: 3003 RVA: 0x00022717 File Offset: 0x00020917
		// (set) Token: 0x06000BBC RID: 3004 RVA: 0x0002271F File Offset: 0x0002091F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string KKPMJEJNLNB
		{
			get
			{
				return this.kKPMJEJNLNB_;
			}
			set
			{
				this.kKPMJEJNLNB_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x06000BBD RID: 3005 RVA: 0x00022732 File Offset: 0x00020932
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleOp);
		}

		// Token: 0x06000BBE RID: 3006 RVA: 0x00022740 File Offset: 0x00020940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleOp other)
		{
			return other != null && (other == this || (this.TurnCounter == other.TurnCounter && this.State == other.State && this.ActionEntityId == other.ActionEntityId && this.TargetEntityId == other.TargetEntityId && this.OpType == other.OpType && this.SkillIndex == other.SkillIndex && this.OperationCounter == other.OperationCounter && !(this.KKPMJEJNLNB != other.KKPMJEJNLNB) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000BBF RID: 3007 RVA: 0x000227F0 File Offset: 0x000209F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TurnCounter != 0U)
			{
				num ^= this.TurnCounter.GetHashCode();
			}
			if (this.State != 0U)
			{
				num ^= this.State.GetHashCode();
			}
			if (this.ActionEntityId != 0U)
			{
				num ^= this.ActionEntityId.GetHashCode();
			}
			if (this.TargetEntityId != 0U)
			{
				num ^= this.TargetEntityId.GetHashCode();
			}
			if (this.OpType != 0U)
			{
				num ^= this.OpType.GetHashCode();
			}
			if (this.SkillIndex != 0U)
			{
				num ^= this.SkillIndex.GetHashCode();
			}
			if (this.OperationCounter != 0U)
			{
				num ^= this.OperationCounter.GetHashCode();
			}
			if (this.KKPMJEJNLNB.Length != 0)
			{
				num ^= this.KKPMJEJNLNB.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000BC0 RID: 3008 RVA: 0x000228E0 File Offset: 0x00020AE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000BC1 RID: 3009 RVA: 0x000228E8 File Offset: 0x00020AE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000BC2 RID: 3010 RVA: 0x000228F4 File Offset: 0x00020AF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TurnCounter != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.TurnCounter);
			}
			if (this.State != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.State);
			}
			if (this.ActionEntityId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ActionEntityId);
			}
			if (this.TargetEntityId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.TargetEntityId);
			}
			if (this.OpType != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.OpType);
			}
			if (this.SkillIndex != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SkillIndex);
			}
			if (this.OperationCounter != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.OperationCounter);
			}
			if (this.KKPMJEJNLNB.Length != 0)
			{
				output.WriteRawTag(66);
				output.WriteString(this.KKPMJEJNLNB);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000BC3 RID: 3011 RVA: 0x000229FC File Offset: 0x00020BFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TurnCounter != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TurnCounter);
			}
			if (this.State != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.State);
			}
			if (this.ActionEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ActionEntityId);
			}
			if (this.TargetEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetEntityId);
			}
			if (this.OpType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OpType);
			}
			if (this.SkillIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillIndex);
			}
			if (this.OperationCounter != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OperationCounter);
			}
			if (this.KKPMJEJNLNB.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.KKPMJEJNLNB);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000BC4 RID: 3012 RVA: 0x00022AE8 File Offset: 0x00020CE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleOp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TurnCounter != 0U)
			{
				this.TurnCounter = other.TurnCounter;
			}
			if (other.State != 0U)
			{
				this.State = other.State;
			}
			if (other.ActionEntityId != 0U)
			{
				this.ActionEntityId = other.ActionEntityId;
			}
			if (other.TargetEntityId != 0U)
			{
				this.TargetEntityId = other.TargetEntityId;
			}
			if (other.OpType != 0U)
			{
				this.OpType = other.OpType;
			}
			if (other.SkillIndex != 0U)
			{
				this.SkillIndex = other.SkillIndex;
			}
			if (other.OperationCounter != 0U)
			{
				this.OperationCounter = other.OperationCounter;
			}
			if (other.KKPMJEJNLNB.Length != 0)
			{
				this.KKPMJEJNLNB = other.KKPMJEJNLNB;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000BC5 RID: 3013 RVA: 0x00022BB5 File Offset: 0x00020DB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000BC6 RID: 3014 RVA: 0x00022BC0 File Offset: 0x00020DC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num <= 16U)
					{
						if (num == 8U)
						{
							this.TurnCounter = input.ReadUInt32();
							continue;
						}
						if (num == 16U)
						{
							this.State = input.ReadUInt32();
							continue;
						}
					}
					else
					{
						if (num == 24U)
						{
							this.ActionEntityId = input.ReadUInt32();
							continue;
						}
						if (num == 32U)
						{
							this.TargetEntityId = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 48U)
				{
					if (num == 40U)
					{
						this.OpType = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.SkillIndex = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.OperationCounter = input.ReadUInt32();
						continue;
					}
					if (num == 66U)
					{
						this.KKPMJEJNLNB = input.ReadString();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040004C0 RID: 1216
		private static readonly MessageParser<BattleOp> _parser = new MessageParser<BattleOp>(() => new BattleOp());

		// Token: 0x040004C1 RID: 1217
		private UnknownFieldSet _unknownFields;

		// Token: 0x040004C2 RID: 1218
		public const int TurnCounterFieldNumber = 1;

		// Token: 0x040004C3 RID: 1219
		private uint turnCounter_;

		// Token: 0x040004C4 RID: 1220
		public const int StateFieldNumber = 2;

		// Token: 0x040004C5 RID: 1221
		private uint state_;

		// Token: 0x040004C6 RID: 1222
		public const int ActionEntityIdFieldNumber = 3;

		// Token: 0x040004C7 RID: 1223
		private uint actionEntityId_;

		// Token: 0x040004C8 RID: 1224
		public const int TargetEntityIdFieldNumber = 4;

		// Token: 0x040004C9 RID: 1225
		private uint targetEntityId_;

		// Token: 0x040004CA RID: 1226
		public const int OpTypeFieldNumber = 5;

		// Token: 0x040004CB RID: 1227
		private uint opType_;

		// Token: 0x040004CC RID: 1228
		public const int SkillIndexFieldNumber = 6;

		// Token: 0x040004CD RID: 1229
		private uint skillIndex_;

		// Token: 0x040004CE RID: 1230
		public const int OperationCounterFieldNumber = 7;

		// Token: 0x040004CF RID: 1231
		private uint operationCounter_;

		// Token: 0x040004D0 RID: 1232
		public const int KKPMJEJNLNBFieldNumber = 8;

		// Token: 0x040004D1 RID: 1233
		private string kKPMJEJNLNB_ = "";
	}
}
